import Vue from 'vue'
import App from './App.vue'
import VueRouter from './vue-router'

Vue.config.productionTip = false

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'HelloWorld',
    component: () => import(/* webpackChunkName: "HelloWorld" */ './components/HelloWorld.vue')
  },
  {
    path: '/hello',
    name: 'HelloWorld',
    component: () => import(/* webpackChunkName: "HelloWorld" */ './components/HelloWorld.vue')
  },
  {
    path: '/404',
    name: '404',
    component: () => import(/* webpackChunkName: "404" */ './components/404.vue')
  }
]

const router = new VueRouter({
  mode: 'hash',
  routes
})

new Vue({
  render: h => h(App),
  router,
}).$mount('#app')
